<?php
/**
 *
 *
 */
class Privilege extends AppModel
{
    public $name       = "Privilege";
    public $primaryKey = "privilegeId";
    public $hasMany    = array('User' =>
                                array('className' => 'User',
                                      'foreignKey' => 'privilegeId'
                                      )
                               );


    public function get_privilege_info($marker, array $condition, $fields = null)
    {
        return self::find($marker, array('conditions' => $condition, 'fields' => $fields));
    }
}
?>